package com.hnx.admin.aurora.system.controller;

import com.hnx.admin.aurora.system.service.CaptchaService;
import com.hnx.admin.aurora.web.json.ResultJson;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletResponse;

/*
创建人： 倔强的头发
创建时间：2025/6/14
功能描述:

*/
@RestController
@RequiredArgsConstructor
public class CaptchaController {
    private final CaptchaService captchaService;
    /**
     * 生成验证码
     */
    @GetMapping("/captchaImage")
    public ResultJson getCode(HttpServletResponse response)
    {
        return captchaService.getCode(response);
    }
}
